package com.question.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.question.entity.Options;
import com.question.service.IOptionsService;

@Controller
@RequestMapping("/options")
public class OptionsController {
	@Autowired
	private IOptionsService optionsService;
	
	@RequestMapping("/findOne")
	public @ResponseBody Options findOne(Long id) {
		return optionsService.findOne(id);
	}
}
